package cn.syncrond.tcm.core.ext;

import java.util.EventListener;

/**
 * @Description: 任务事件监听器
 * @author meepai
 * @date 2016-11-21
 */
public interface ITaskEventListener extends EventListener {

	/**
	 * 处理事件
	 * @param event
	 */
	void handleEvent(TaskEvent event);
	
	
	/**
	 * @Description: 任务开始事件监听器
	 * @author meepai
	 * @date 2016-11-21
	 */
	public static interface ITaskStartEventListener extends ITaskEventListener {}
	
	
	/**
	 * @Description: 任务结束事件监听器
	 * @author meepai
	 * @date 2016-11-21
	 */
	public static interface ITaskEndEventListener extends ITaskEventListener {}
	
	/**
	 * @Description: 任务出错事件监听器
	 * @author meepai
	 * @date 2016-11-21
	 */
	public static interface ITaskErrorEventListener extends ITaskEventListener {}
	
	/**
	 * @Description: 任务暂停事件监听器
	 * @author meepai
	 * @date 2016-11-21
	 */
	public static interface ITaskPauseEventListener extends ITaskEventListener {}
	
	/**
	 * @Description: 任务恢复事件监听器
	 * @author meepai
	 * @date 2016-11-21
	 */
	public static interface ITaskResumeEventListener extends ITaskEventListener {}
	
}
